﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Chenxin.Lib.Cache
{
    public class CacheDataType
    {
        public CacheDataType()
        {
        }
        /// <summary>
        /// 全局级缓存Key命名
        /// </summary>
        public const string GLOBAL = "global.{0}";

        /// <summary>
        /// 电话保护缓存
        /// </summary>
        public const string GLOBAL_PROTECTPHONECONFIG = "global.protectphoneconfig";

        /// <summary>
        /// 部门参数设定数据缓存Key, 传入部门ID做为参数
        /// </summary>
        public const string GLOBAL_DEPART_SETTINGS = "global.depart.settings.{0}";

        /// <summary>
        /// 指定公司下所有楼盘字典缓存key,传入companyID 作为参数
        /// </summary>
        public const string GLOBAL_COMPANY_COMMUNITYS = "global.company.communitys.{0}";

        /// <summary>
        /// 楼盘对应的所有楼栋缓存Key, 传入楼盘ID做为参数；
        /// </summary>
        public const string GLOBAL_COMMUNITY_BUILDINGS = "global.community.buildings.{0}";

        /// <summary>
        /// 全局缓存 我的收藏
        /// </summary>
        public const string GLOBAL_MYFAVOR = "global.favor.{0}";

        /// <summary>
        /// 全局缓存，用户控制部门
        /// </summary>
        public const string GLOBAL_USER_CONTROLED_DEPARTS = "global.userctrdeparts.{0}";

        /// <summary>
        /// 全局用户链接缓存，传入从Cookie中读取的requestkey作为参数
        /// </summary>
        public const string GLOBAL_REQUEST = "global.request.{0}";

        /// <summary>
        /// 全局级用户权限缓存，传入用户ID作为参数
        /// </summary>
        public const string GLOBAL_PERMITS = "global.permits.{0}";

        /// <summary>
        /// 全局级CurrentUser用户基本信息缓存，传入用户ID作为参数
        /// </summary>
        public const string GLOBAL_USER = "global.user.{0}";

        /// <summary>
        /// 全局级房源信息缓存传入房源ID为参数
        /// </summary>
        public const string GLOBAL_HOUSEINFO = "global.houseinfo.{0}";

        /// <summary>
        /// 全局级部门基本信息缓存，传入部门ID作为参数
        /// </summary>
        public const string GLOBAL_DEPARTMENT = "global.depart.{0}";

        /// <summary>
        /// 全局级组织结构缓存，传入父ID作为参数
        /// </summary>
        public const string GLOBAL_STRUCT_TREE = "global.struct.tree.{0}";

        /// <summary>
        /// 全局级组织结构缓存，不需要参数
        /// </summary>
        public const string GLOBAL_STRUCT_FULL = "global.struct.full";

        /// <summary>
        /// 全局级城市，不需要参数
        /// </summary>
        public const string GLOBAL_CITYS = "global.strut.citys";
        /// <summary>
        /// 全局级缓存Key命名
        /// </summary>
        public const string GLOBAL_KEYUSEINFO = "global.keyuseinfo.{0}";

        /// <summary>
        /// 全局级缓存Key命名
        /// </summary>
        public const string GLOBAL_CUSTOMERDEMAND = "global.customerdemand.{0}";

        /// <summary>
        /// 存放人事管理中的数据缓存的命名
        /// </summary>
        public const string HR = "hr.{0}";
        /// <summary>
        /// 所有权限的列表缓存
        /// </summary>
        public const string HR_ALLPERMITS = "hr.permit.all";
        /// <summary>
        /// 某一查看级别权限的列表缓存
        /// </summary>
        public const string HR_PERMITS_LEVEL = "hr.permit.level.{0}";
        /// <summary>
        /// 单个权限对象缓存
        /// </summary>
        public const string HR_SINGLEPERMIT = "hr.permit.{0}";

        /// <summary>
        /// 所有角色的列表缓存
        /// </summary>
        public const string HR_ALLROLES = "hr.role.all";
        /// <summary>
        /// 某一城市角色的列表缓存
        /// </summary>
        public const string HR_CITYROLES = "hr.role.{0}";
        /// <summary>
        /// 单个角色对象缓存
        /// </summary>
        public const string HR_SINGLEROLE = "hr.role.{0}";
        /// <summary>
        /// 单个角色对应权限缓存
        /// </summary>
        public const string HR_ROLEPERMITS = "hr.role_permts.{0}";
        /// <summary>
        /// 单个权限分类对应权限列表缓存
        /// </summary>
        public const string HR_GROUPPERMITS = "hr.group_permts.{0}";
        /// <summary>
        /// 用户对应调动信息列表缓存
        /// </summary>
        public const string HR_TRANSFERINFO = "hr_transferInfo.{0}";
        /// <summary>
        /// 部门信息列表缓存
        /// </summary>
        public const string HR_ALLDEPARTMENTS = "hr_alldepartments";

        /// <summary>
        /// 公司下部门
        /// </summary>
        public const string HR_DEPARTMENT_USERS = "hr_department_users.{0}";
        /// <summary>
        /// 考勤字典数据缓存
        /// </summary>
        public const string HR_ATTENDANCECIRCLE = "hr_attendancecircle";
        /// <summary>
        /// 考勤信息数据缓存
        /// </summary>
        public const string HR_ATTENDANCEOFDEPARTMONTH = "hr_attendance.{0}.{1}";
        /// <summary>
        /// 部门员工信息数据缓存
        /// </summary>
        public const string HR_DEPARTUSERS = "hr_departusers.{0}";

        public const string USER = "user.{0}";

        /// <summary>
        /// 存放房源管理中的数据缓存的命名
        /// </summary>
        public const string HOUSE = "house.{0}";

        /// <summary>
        /// 个人要比较的房屋
        /// </summary>
        public const string HOUSE_COMPAREHOUSES = "house.comparehouses.{0}";

        /// <summary>
        /// 房源跟单
        /// </summary>
        public const string HOUSE_TRACE = "house.trace.{0}";

        /// <summary>
        /// 房源备案,传入房源ID为参数
        /// </summary>
        public const string HOUSE_MARK = "house.mark.{0}";

        /// <summary>
        /// 房源委托
        /// </summary>
        public const string HOUSE_ENTRUST = "house.entrust.{0}";

        public const string TRADE = "trade.{0}";
        public const string FINANCE = "finance.{0}";

        /// <summary>
        /// 存放数据字典的数据缓存的命名
        /// </summary>
        public const string DICTDATA = "dictdata.{0}";
        public const string LOAN = "loan.{0}";
        public const string REPORT = "report.{0}";



        /// <summary>
        /// 单个小区信息缓存，传入参数，小区ID
        /// </summary>
        public const string HOUSE_COMMUNITYINFO = "house.communityinfo.{0}";


        /// <summary>
        /// 单个楼栋信息缓存，传入参数，楼栋ID
        /// </summary>
        public const string HOUSE_COMMUNITYBUILDINGINFO = "house.communitybuildinginfo.{0}";

        /// <summary>
        /// 个人要带看的房屋
        /// </summary>
        public const string HOUSE_VIEWHOUSES = "house.viewhouses.{0}";

        /// <summary>
        /// 详情页面 跟单
        /// </summary>
        public const string HOUSE_INFO_TRACE = "house.info.trace.{0}";
        /// <summary>
        /// 详情页面 委托
        /// </summary>
        public const string HOUSE_INFO_TRUST = "house.info.trust.{0}";
        /// <summary>
        /// 详情页面 备案
        /// </summary>
        public const string HOUSE_INFO_MARKED = "house.info.marked.{0}";
        /// <summary>
        /// 详情页面 钥匙
        /// </summary>
        public const string HOUSE_INFO_KEY = "house.info.key.{0}";
        /// <summary>
        /// 详情页面 任务分配
        /// </summary>
        public const string HOUSE_INFO_DISPEN = "house.info.dispen.{0}";
        /// <summary>
        /// 详情页面 请求变更
        /// </summary>
        public const string HOUSE_INFO_REQUEST = "house.info.request.{0}";
        /// <summary>
        /// 虚假跟单
        /// </summary>
        public const string COUNTERFEIT_TRACE = "counterfeit.trace.{0}";

        /// <summary>
        /// 查看过房源业主的人的信息
        /// </summary>
        public const string HOUSE_VIEWOWNER = "house.viewowner.{0}";

        /// <summary>
        /// 工作报告缓存
        /// </summary>
        public const string HR_WORKREPORT = "hr.workreport.{0}";

        /// <summary>
        /// 标准佣金比率
        /// </summary>
        public const string BUSINESS_STANDARDRATE = "business.commissionrate.{0}.{1}.{2}";

    }
}
